﻿package com.taihua_tech.basic.controller.book;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taihua_tech.basic.service.BookService;
import com.taihua_tech.basic.util.NoteResult;
 

@Controller
@RequestMapping("/book")
public class LoadAllBooksController {
	@Resource
	private BookService bookService;
	@RequestMapping("/all.do")
	@ResponseBody
	public NoteResult execute(){
		NoteResult result = 
			bookService.loadAllBooks();
		return result;
	}
	
}
